package cn.project.lemontree.dao;

import cn.project.lemontree.bean.Task;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

//   int save(Book book);
//
//           int remove(List<Integer> list);
//
//        int  update(Book book);
@Repository
public interface TaskDao extends BaseMapper<Task> {
    List<Task> listPage(@Param("page")int page,
                    @Param("size")int size,
                    @Param("teacherName")String teacherName,
                       @Param("theme") String theme);
    int count( @Param("teacherName")String teacherName,@Param("theme") String theme);
    int save(Task task);
    int remove(List<Integer> list);
    int update(Task task);
    int countMyTask(Integer teacherId,String theme);
    List<Task> regain(String ddesc,String theme);
    List<Task> getMyTask(int page,int size,Integer teacherId,String theme);


}

